package com.biz.primus.base.enums.commodity;


import com.biz.primus.common.enums.EnumerableValue;
import com.biz.primus.common.enums.converter.BaseEnumValueConverter;

/**
 * Created by jiangnan on 2017/7/13.
 */
public enum StockChannel implements EnumerableValue {
    NORMAL(0,"普通"),
    YI_JIA_JIU(1,"壹加玖"),
    YI_XIANG(2,"逸香国际");

    public static class Converter extends BaseEnumValueConverter<StockChannel> {
    }

    private int value;

    private String desc;

    public static StockChannel valueOf(int val){
        switch (val) {
            case 0:return NORMAL;
            case 1:return YI_JIA_JIU;
            case 2:return YI_XIANG;
            default:return NORMAL;
        }
    }
    
    StockChannel(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int getValue() {
        return value;
    }
    
    public String getDesc(){
    	return desc;
    }
    
}
